import request from '@/utils/request'

// 四性检测记录列表
export function getRecordsList(query) {
  return request({
    url: '/archive/inspectionRecords/list',
    method: 'get',
    params: query
  })
}

// 四性检测记录新增
export function addRecords(data) {
  return request({
    url: '/archive/inspectionRecords/xmlImportData',
    method: 'post',
    data: data
  })
}

// 四性检测记录修改
export function updateRecords(data) {
  return request({
    url: '/archive/inspectionRecords',
    method: 'put',
    data: data
  })
}

// 四性检测记录删除
export function deleteRecords(id) {
  return request({
    url: '/archive/inspectionRecords/' + id,
    method: 'delete'
  })
}

// 四性检测记录获取详情
export function getRecordsDetail(query) {
  return request({
    url: '/archive/inspectionLogs/list',
    method: 'get',
    params: query
  })
}

// 获取不通过列表
export function getFailList(query) {
  return request({
    url: '/archive/detailLogs/list',
    method: 'get',
    params: query
  })
}
